package com.wordLearning.word.domain.convert;


import com.wordLearning.word.domain.entity.WordBO;
import com.wordLearning.word.infra.basic.entity.Word;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface WordInfoConverter {
    WordInfoConverter INSTANCE = Mappers.getMapper(WordInfoConverter.class);

    Word convertBoToEntity(WordBO wordBO);

    List<WordBO> convertEntityListToBOList(List<Word> wordList);

    WordBO convertEntityToBO(Word resWord);
}
